package com.sg.dto.biz.bff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc BffTargetBudgetSourceDto
 * @使用场景
 */
@Data
public class BffTargetBudgetSourceDto implements Serializable {

    /**
     * 目标预算设置ID
     */
    @ApiModelProperty("目标预算设置ID")
    private String targetCostSetId;

    /**
     * 资金来源ID
     */
    @ApiModelProperty("资金来源ID")
    private String capitalSourceId;

    /**
     * 资金来源名称
     */
    @ApiModelProperty("资金来源名称")
    private String capitalSourceName;

    /**
     * 冗余预算单位
     */
    @ApiModelProperty("冗余预算单位")
    private String cycleBudgetUnit;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffTargetBudgetSourceDto that = (BffTargetBudgetSourceDto) o;
        return targetCostSetId == that.targetCostSetId && capitalSourceId == that.capitalSourceId && capitalSourceName == that.capitalSourceName && cycleBudgetUnit == that.cycleBudgetUnit;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), targetCostSetId, capitalSourceId, capitalSourceName, cycleBudgetUnit);
    }

}
